<?php
/** @var League\Plates\Template\Template $v */
$v = $this;
//dump_pre(get_defined_vars());
if ($title) {
    $title = $site['网站标题'];
}

?>
<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?= $title ?></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <link rel="stylesheet" href="<?= getRes("docs/vendor/bootstrap/css/bootstrap.min.css") ?>">
    <link rel="stylesheet" href="<?= getRes("docs/vendor/font-awesome/css/font-awesome.min.css") ?>">
    <link rel="stylesheet" href="<?= getRes("docs/css/fontastic.css") ?>">
    <link rel="stylesheet" href="<?= getRes("docs/vendor/@fancyapps/fancybox/jquery.fancybox.min.css") ?>">
    <link rel="stylesheet" href="<?= getRes("docs/css/style.blue.css") ?>">
    <link rel="stylesheet" href="<?= getRes("docs/css/custom.css") ?>">
    <link rel="stylesheet" href="<?= getRes("docs/css/docs.min.css") ?>">
    <?php md_import_css(); ?>
    <link rel="shortcut icon" href="favicon.png">
    <!-- Tweaks for older IEs-->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>

    <![endif]-->
</head>
<body>
<header class="header">
    <!-- Main Navbar-->
    <nav class="navbar navbar-expand-lg">
        <div class="search-area">
            <div class="search-area-inner d-flex align-items-center justify-content-center">
                <div class="close-btn"><i class="icon-close"></i></div>
                <div class="row d-flex justify-content-center">
                    <div class="col-md-8">
                        <form action="#">
                            <div class="form-group">
                                <input type="search" name="search" id="search"
                                       placeholder="<?php t("Please enter keywords") ?>">
                                <button type="submit" class="submit"><i class="icon-search-1"></i></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="container">
            <!-- Navbar Brand -->
            <div class="navbar-header d-flex align-items-center justify-content-between">
                <!-- Navbar Brand -->
                <a href="/" class="navbar-brand"><?php echo($site['网站标题']); ?></a>
                <!-- Toggle Button-->
                <button type="button" data-toggle="collapse" data-target="#navbarcollapse"
                        aria-controls="navbarcollapse" aria-expanded="false" aria-label="Toggle navigation"
                        class="navbar-toggler"><span></span><span></span><span></span></button>
            </div>
            <!-- Navbar Menu -->
            <div id="navbarcollapse" class="collapse navbar-collapse">
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item"><a href="/docs" class="nav-link active ">首页</a>
                    </li>
                    <li class="nav-item"><a href="/docs/doc" class="nav-link ">文档</a>
                    </li>
                    <li class="nav-item"><a href="/docs/about" class="nav-link ">关于</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</header>

<?= $this->section('hero') ?>
<?= $this->section('intro') ?>
<?= $this->section('featured') ?>
<?= $this->section('divider') ?>

<!-- Page Footer-->
<footer class="main-footer" style="padding: 30px 0 0 0">
    <div class="container">
        <div class="row">
            <div class="col-md-4">
                <div class="logo">
                    <h6 class="text-white"><?= $title ?></h6>
                </div>
                <div class="contact-details">
                    <p>一路有你 withu2018</p>
                    <p>QQ: 271833059</p>
                    <p>Email: <a href="mailto:271833059@qq.com">271833059@qq.com</a></p>
                    <ul class="social-menu">
                        <li class="list-inline-item"><i class="fa fa-star"></i></li>
                        <li class="list-inline-item"><i class="fa fa-star"></i></li>
                        <li class="list-inline-item"><i class="fa fa-star"></i></li>
                        <li class="list-inline-item"><i class="fa fa-star"></i></li>
                        <li class="list-inline-item"><i class="fa fa-star"></i></li>
                    </ul>
                </div>
            </div>
            <div class="col-md-4">
                <div class="menus d-flex">
                    <ul class="list-unstyled">
                        <li><a href="/">首页</a></li>
                        <li><a href="/docs">文档</a></li>
                        <li><a href="/docs/about">关于</a></li>
                        <li><a target="_blank" href="https://www.zhihu.com/people/shenjinqiang">知乎</a></li>
                    </ul>
                    <ul class="list-unstyled">
                        <li><a href="/">Home</a></li>
                        <li><a href="/docs">Documents</a></li>
                        <li><a href="/docs/about">About</a></li>
                        <li><a target="_blank" href="https://www.zhihu.com/people/shenjinqiang">Zhihu</a></li>
                    </ul>
                </div>
            </div>
            <div class="col-md-4">
                <ul class="list-unstyled">
                    <li><a href="https://qapp.1e9.cc/docs/doc/1#juanzeng">赞助👍</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="copyrights" style="margin-top: 30px">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <p>网站版权 &copy; <?= date('Y') ?>  <?php echo $site['版权'] ?>
                    </p>
                </div>
                <div class="col-md-6 text-right">
                    QAPP使用协议 <a href="https://opensource.org/licenses/MIT" target="_blank" title="">MIT License</a>
                </div>
            </div>
        </div>
    </div>
</footer>


<!-- JavaScript files-->
<script src="/assets/docs/vendor/jquery/jquery.min.js"></script>
<script src="/assets/docs/vendor/popper.js/umd/popper.min.js"></script>
<script src="/assets/docs/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="/assets/docs/vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="/assets/docs/vendor/@fancyapps/fancybox/jquery.fancybox.min.js"></script>
<script src="/assets/docs/js/front.js"></script>
<?php  md_import_js(); ?>
</body>
</html>